import ElementUI from "element-ui";

const Elements = (Vue) => {
	Object.keys(ElementUI).forEach(key => {
		let component = ElementUI[key];
		if (typeof component === "object" && component.name) {
			Vue.component(component.name, () => Promise.resolve(component));
		}
	});
};
export default Elements;
